package com.votesys.util;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import javax.servlet.http.HttpServletRequest;

public interface IUtils {
	
	/**
	 * change file type to byte array type
	 * @param file
	 * @return
	 * @throws IOException 
	 */
	public byte[] getFileInputStream(File tempfile) throws IOException;
	
	
	public InputStream getFileInputStream(byte[] file);
	
	/**
	 * get HTTP request
	 * @return
	 */
	public HttpServletRequest getRequest();

}
